static void gtk_notebook_set_tab_label_packing (GtkNotebook *notebook,
GtkWidget *child,
gboolean expand,
- gboolean fill,
- GtkPackType pack_type);
+ gboolean fill);
static void gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
GtkWidget *child,
gboolean *expand,
- gboolean *fill,
- GtkPackType *pack_type);
+ gboolean *fill);
/*** GObject Methods ***/
static void gtk_notebook_set_property (GObject *object,
{
gboolean expand;
gboolean fill;
- GtkPackType pack_type;
/* not finding child's page is valid for menus or labels */
if (!gtk_notebook_find_child (GTK_NOTEBOOK (container), child, NULL))
break;
case CHILD_PROP_TAB_EXPAND:
gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- &expand, &fill, &pack_type);
+ &expand, &fill);
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (container), child,
g_value_get_boolean (value),
- fill, pack_type);
+ fill);
break;
case CHILD_PROP_TAB_FILL:
gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- &expand, &fill, &pack_type);
+ &expand, &fill);
gtk_notebook_set_tab_label_packing (GTK_NOTEBOOK (container), child,
expand,
- g_value_get_boolean (value),
- pack_type);
+ g_value_get_boolean (value));
break;
case CHILD_PROP_REORDERABLE:
gtk_notebook_set_tab_reorderable (GTK_NOTEBOOK (container), child,
break;
case CHILD_PROP_TAB_EXPAND:
gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- &expand, NULL, NULL);
+ &expand, NULL);
g_value_set_boolean (value, expand);
break;
case CHILD_PROP_TAB_FILL:
gtk_notebook_query_tab_label_packing (GTK_NOTEBOOK (container), child,
- NULL, &fill, NULL);
+ NULL, &fill);
g_value_set_boolean (value, fill);
break;
case CHILD_PROP_REORDERABLE:
gtk_notebook_set_tab_label_packing (GtkNotebook *notebook,
GtkWidget *child,
gboolean expand,
- gboolean fill,
- GtkPackType pack_type)
+ gboolean fill)
{
GtkNotebookPrivate *priv;
GtkNotebookPage *page;
priv = notebook->priv;
list = CHECK_FIND_CHILD (notebook, child);
- if (!list)
+ if (!list)
return;
page = list->data;
expand = expand != FALSE;
fill = fill != FALSE;
- if (page->pack == pack_type && page->expand == expand && page->fill == fill)
+ if (page->expand == expand && page->fill == fill)
return;
gtk_widget_freeze_child_notify (child);
gtk_widget_child_notify (child, "tab-expand");
page->fill = fill;
gtk_widget_child_notify (child, "tab-fill");
- if (page->pack != pack_type)
- {
- page->pack = pack_type;
- gtk_notebook_child_reordered (notebook, page);
- }
gtk_widget_child_notify (child, "position");
if (priv->show_tabs)
gtk_notebook_pages_allocate (notebook);
gtk_notebook_query_tab_label_packing (GtkNotebook *notebook,
GtkWidget *child,
gboolean *expand,
- gboolean *fill,
- GtkPackType *pack_type)
+ gboolean *fill)
{
GList *list;
*expand = GTK_NOTEBOOK_PAGE (list)->expand;
if (fill)
*fill = GTK_NOTEBOOK_PAGE (list)->fill;
- if (pack_type)
- *pack_type = GTK_NOTEBOOK_PAGE (list)->pack;
}
/**